package com.sit.estatemanagementserver.enity;

import java.time.LocalDateTime;

/**
 * 设施租借单实体类 (FacilityRental)
 */
public class FacilityRental {

    /**
     * 工单号 (主键)
     */
    private String workOrderId;

    /**
     * 设施编号 (外键, 关联Facility)
     */
    private String facilityId;

    /**
     * 业主电话 (外键, 关联Owner)
     */
    private String ownerPhone;

    /**
     * 租借信息
     */
    private String rentalInfo;

    /**
     * 租借开始时间
     */
    private LocalDateTime startTime;

    /**
     * 租借结束时间
     */
    private LocalDateTime endTime;

    // 构造函数
    public FacilityRental() {
    }

    public FacilityRental(String workOrderId, String facilityId, String ownerPhone, String rentalInfo, LocalDateTime startTime, LocalDateTime endTime) {
        this.workOrderId = workOrderId;
        this.facilityId = facilityId;
        this.ownerPhone = ownerPhone;
        this.rentalInfo = rentalInfo;
        this.startTime = startTime;
        this.endTime = endTime;
    }

    // Getter and Setter
    public String getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(String workOrderId) {
        this.workOrderId = workOrderId;
    }

    public String getFacilityId() {
        return facilityId;
    }

    public void setFacilityId(String facilityId) {
        this.facilityId = facilityId;
    }

    public String getOwnerPhone() {
        return ownerPhone;
    }

    public void setOwnerPhone(String ownerPhone) {
        this.ownerPhone = ownerPhone;
    }

    public String getRentalInfo() {
        return rentalInfo;
    }

    public void setRentalInfo(String rentalInfo) {
        this.rentalInfo = rentalInfo;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }
}